package com.czwj.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.czwj.dao.BudgetItemMapper;
import com.czwj.entities.BudgetItem;
import com.czwj.service.BudgetItemService;

@Service
public class BudgetItemServiceImpl implements BudgetItemService {

	@Resource
	BudgetItemMapper mapper;
	
	
	@Override
	public List<BudgetItem> search(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.search(map);
	}

	@Override
	public int count(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.count(map);
	}

	@Override
	public int update(BudgetItem item) {
		// TODO Auto-generated method stub
		return this.mapper.updateByPrimaryKeySelective(item);
	}

	@Override
	public int insert(BudgetItem item) {
		// TODO Auto-generated method stub
		return this.mapper.insertSelective(item);
	}

	@Override
	public int delete(int id) {
		// TODO Auto-generated method stub
		return this.mapper.deleteByPrimaryKey(id);
	}

	@Override
	public BudgetItem findbycontent(String content) {
		// TODO Auto-generated method stub
		return this.mapper.findbycontent(content);
	}

	@Override
	public List<BudgetItem> existbudgetItemlist(int projectitemid) {
		// TODO Auto-generated method stub
		return this.mapper.existbudgetItemlist(projectitemid);
	}

	@Override
	public Map<String, Double> getMoneySituation(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.getMoneySituation(map);
	}

	@Override
	public Map<String, Object> warningtips(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.warningtips(map);
	}

	/** 
	* 
	* @param projectitemchildid
	* @return
	* @see com.czwj.service.BudgetItemService#existbudgetItemlistchild(int)
	*/
	@Override
	public List<BudgetItem> existbudgetItemlistchild(int projectitemchildid){
		// TODO Auto-generated method stub
		return this.mapper.existbudgetItemlistchild(projectitemchildid);
	}

	/** 
	* 
	* @param map
	* @return
	* @see com.czwj.service.BudgetItemService#getMoneySituationChild(java.util.Map)
	*/
	@Override
	public Map<String,Double> getMoneySituationChild(Map<String,Object> map){
		// TODO Auto-generated method stub
		return this.mapper.getMoneySituationChild(map);
	}

	/** 
	* 
	* @param map
	* @return
	* @see com.czwj.service.BudgetItemService#dailyfinace(java.util.Map)
	*/
	@Override
	public List<Map<String,Object>> dailyfinace(Map<String,Object> map){
		// TODO Auto-generated method stub
		return this.mapper.dailyfinace(map);
	}

	/** 
	* 
	* @param map
	* @return
	* @see com.czwj.service.BudgetItemService#searchmoneyinitem(java.util.Map)
	*/
	@Override
	public List<Map<String,Object>> searchmoneyinitem(Map<String,Object> map){
		// TODO Auto-generated method stub
		return this.mapper.searchmoneyinitem(map);
	}

}
